/*
 *  Copyright 2015-2016, RenGu Technology (BeiJing) Co., Ltd.
 *  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIR PARTIES,
 *  COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  OpmsParam.java
 *
 *  Edit History:
 *  	2016年9月5日 - Created by pengpeng
 *
 */
package cc.rengu.igas.channel.ncqs.common.constant;

/**
 * 应用公共常量类
 * Created by 王成 on 2018/5/31.
 */
public class NcqsParamConstant {
    public static final String SYS_ID = "0000";
    public static final String MCP_SYS_ID = "MCPS";
    public static final String IAPS_SYS_ID = "IAPS";
    public static final String IGAS_SYS_ID = "IGAS";
    public static final String BSPS_SYS_ID = "BSPS";
    public static final String EPSP_SYS_ID = "CFPS";


    /* mac block域配置文件缓存 */
    public static final String CACHE_POS_8583_MAC = "CACHE_POS_8583_MAC";
    /* POS报文8583解析工具类缓存 */
    public static final String CACHE_POS_8583_DECODE = "CACHE_POS_8583_DECODE";
    /* POS报文8583编码工具类缓存 */
    public static final String CACHE_POS_8583_ENCODE = "CACHE_POS_8583_ENCODE";

    /* 通道ID */
    public static final String TUNL_ID_UPAC = "UPAC";
    public static final String TUNL_ID_WXZF = "WXZF";
    public static final String TUNL_ID_ALIP = "ALIP";
    public static final String TUNL_ID_UPQC = "UPQC";//银联二维码
    public static final String TUNL_ID_EPCC = "EPCC";//网联支付清算平台
    public static final String TUNL_ID_CUPS = "CUPS";
    public static final String TUNL_ID_NCQS = "NCQS"; //银联无卡快捷支付平台
    public static final String TUNL_ID_NCQS_ISS = "NCQSISS"; //银联无卡快捷支付发卡
    /* 开关标志 */
    public static final String YES = "Y";
    public static final String NO = "N";

    /* 默认机构常量 */
    public static final String DEFAULT_INSTID = "00000000000000";
    /* 默认交易细分 */
    public static final String DEFAULT_BIZ_TYPE = "00";
    /* 默认发卡机构标识 */
    public static final String DEFAULT_ISSUER_CODE = "00000000";
    /* 默认失效日期 */
    public static final String DEFAULT_EXPIRY_DATE = "29991231";
    /* 默认字符串分隔符 */
    public static final String DEFAULT_DELIMITER = ",";
    /* 默认0 */
    public static final String STRING_DEFAULT_ZERO = "0";
    /* 默认1 */
    public static final String STRING_DEFAULT_ONE = "1";
    /* SUCCESS */
    public static final String STRING_SUCCESS = "SUCCESS";
    /* AILPAY_SUCCESS_CODE */
    public static final String AILPAY_SUCCESS_CODE = "10000";
    /* EPCC_SUCCESS_CODE */
    public static final String EPCC_SUCCESS_CODE = "00000000";
    /* UPAC_SUCCESS_CODE */
    public static final String UPAC_SUCCESS_CODE = "00";
    /*返回订单列表最大条数*/
    public static final int MAX_ORDER_LIST_NUM = 5;
    /* NCQS_SUCCESS_CODE */
    public static final String NCQS_SUCCESS_CODE = "00000000";
    /* 接收方超时 */
    public static final String NCQS_TIME_OUT_CODE = "ES000033";
    /* 连接故障 */
    public static final String NCQS_CONNECT_ERROR_CODE = "ES000032";

    /* XML树默认节点 */
    public static final String XML_ROOT_NAME = "radp";

    /* 默认流水号前缀 */
    public static final String PREFIX_SEQ_STRING = "TRACE";

    /*版本号*/
    public static final String VERSION = "1.0.0";

    /* 商户服务参数类型 */
    public static final String MCHNT_PARAM_TYPE = "MCHNT_SERVICE";
    /* 商户推送开关标识 */
    public static final String MCHNT_PUSH_MSG_FLAG = "MCHNT_PUSH_MSG_FLAG";
    /* 交易推送总开关 */
    public static final String MSG_PUSH_FLAG = "MSG_PUSH_FLAG";
    /* 交易推送开关标识 */
    public static final String TXN_PUSH_LIST_PARAM = "TXN_PUSH_LIST_PARAM";
    /* 交易推送类型模式 */
    public static final String TXN_TYPE_PUSH_PARAM = "TXN_TYPE_PUSH_PARAM";
    /* 银行机构 */
    public static final String ISS_INST_CODE = "ISS_INST_CODE";
    /* 网联消息类型 */
    public static final String EPCC_IN_MSG_TP = "EPCC_IN_MSG_TP";
    /* 网联消息类型 */
    public static final String EPCC_OUT_MSG_TP = "EPCC_OUT_MSG_TP";
    /*网联idc列表缓存*/
    public static final String NUCC_IDC_CAC = "NUCC_IDC_CAC";
    /*网联流水号控制位列表缓存*/
    public static final String EPCC_CTRL_NB_CAC = "EPCC_CTRL_NB_CAC";
    /* 网联机构编码 */
    public static final String EPCC_DEFAULT_INSTID = "00000000000000";

    /* 短信验证码有效时间 */
    public static final int DEFAULT_EFFECTIVE_TIME = 300;
    /* 短信验证码默认最大验证次数 */
    public static final int DEFAULT_VERIFY_TIME = 3;
    /* 支付有效时间 -5分钟*/
    public static final int DEFAULT_PAYMENT_VALID_TIME = 300;

    /* 手续费字段 */
    public static final String FEE_JSON_KEY = "fee";
    public static final String LADDER_JSON_KEY = "ladder";
    public static final String TRANS_MAX_JSON_KEY = "transMax";
    public static final String TRANS_AMT_JSON_KEY = "transAmt";
    public static final String TOTAL_AMT_JSON_KEY = "totalAmt";
    public static final String REQUEST_ID = "0492";
    public static final String VERSION_ID = "01";
    public static final String CHANNEL_ID = "11";


    public static String SIGN_CERT_TYPE = "CE00";
    public static String ENCRYPT_CERT_TYPE = "CE01";
    public static String VERIFY_CERT_TYPE = "CD00";
    public static String DECRYPT_CERT_TYPE = "CD01";
    /****************esb交易服务编码*******************/
    /* 协议支付触发短信 */
    public static final String AGREE_PAY_WITH_SMS_CDOE = "0245PB00526000";
    /* 直接支付触发短信 */
    public static final String DIRECT_PAY_WITH_SMS_CDOE = "0245PB005260A0";
    /* 协议支付签约 */
    public static final String AGREE_PAY_SIGN_CDOE = "0245PB00526100";
    /* 协议支付解约 */
    public static final String AGREE_PAY_SIGN_RESCIND_CDOE = "0245PB00526101";
    /* 协议支付 */
    public static final String AGREE_PAY_CDOE = "0245PA00526200";
    /* 直接支付 */
    public static final String DIRECT_PAY_CDOE = "0245PA005262A0";
    /* 贷记付款 */
    public static final String CREIT_PAY_CDOE = "0245PA00526400";
    /* 退款 */
    public static final String REFUND_CDOE = "0245PA00526201";
    /* 交易状态查询 */
    public static final String TRANS_STATE_QUERY_CDOE = "0245PB00526300";
}
